package com.blink.optimize.algorithm.lru;


import com.blink.optimize.algorithm.Cache;

import java.util.Map;

/**
 * LruCache
 */
public class LruCache implements Cache {

    private final Map<String, Object> store;

    public LruCache(int cacheSize) {
        this.store = new BaseLRUCache<String, Object>(cacheSize);
    }

    @Override
    public void put(String key, Object value) {
        store.put(key, value);
    }

    @Override
    public Object get(String key) {
        return store.get(key);
    }

}
